import Request from "@/util/api.request.js"

/**商品分类API */
export const getCategories = () => {
	return Request.Execute({
		url:`/catalog/index`,
		method: 'GET'
	})
}

/**商品列表API */
export const getProductList = (query) => {
	return Request.Execute({
		url: `/goods/list${query}`,
		method: 'GET'
	});
} 

/**
 * 获得商品的详情
 */
export const getProductDetail = (query) =>{
	return Request.Execute({
		url:`/goods/detail${query}`,
		method:'GET'
	});
}